var zeai_iMarquee = function (id, tag, heigh, speed, delay) {
	var me = this;
	me.EL = document.getElementById(id);
	me.PA = 0;
	me.TI = null;
	me.LH = heigh;
	me.SP = speed;
	me.DY = delay;
	me.exec = function () {
		if (me.PA) return;
		me.EL.scrollTop += 2;
		if (me.EL.scrollTop % me.LH <= 1) {
			clearInterval(me.TI);
			me.EL.appendChild(me.EL.getElementsByTagName(tag)[0]);
			me.EL.scrollTop = 0;
			setTimeout(me.start, me.DY * 1000);
		}
	};
	me.start = function () {if (me.EL.scrollHeight - me.EL.offsetHeight >= me.LH) me.TI = setInterval(me.exec, me.SP);};
	setTimeout(me.start, me.DY * 1000);
};
function zeai_iMarqueeFn(){
	zeai.ajax({url:MHOST+'/my'+zeai.ajxext+'submitok=ajax_iMarquee'},function(e){
		if(!zeai.empty(e)){iMarquee.html(e);setTimeout(function(){new zeai_iMarquee("iMarquee","li",40,30,2);},100);}
	});
}
function morebtn(btnobj,boxobj,boxH){
	var H = boxobj.scrollHeight;
	if(btnobj.hasClass('off')){
		btnobj.removeClass('off');
		btnobj.addClass('on');
		btnobj.html('&#xe60a;');
		boxobj.style.height=H+'px';//auto
	}else{
		btnobj.removeClass('on');
		btnobj.addClass('off');
		btnobj.html('&#xe60b;');
		boxobj.style.height=boxH;
	}
}